package com.sundaying.gooway.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * 用户提交收集的信息
 * @author Administrator
 *
 */
@Entity(name="Gow_GleanInfo")
public class GleanInfo {
	private long id;
	private int type;//提交链接、新闻资讯和反馈意见等
	private String title;
	private String content;
	private String link;//网址或邮箱
	private String traceCode;//问题跟踪号
	private String tracePwd;//跟踪密码
	private int state;
	private Date logDateC;
	private Date logDateU;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	
	@Column(length=100)
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	@Column(length=1000)
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	@Column(length=500)
	public String getLink() {
		return link;
	}
	public void setLink(String link) {
		this.link = link;
	}
	
	@Column(nullable=true)
	public String getTraceCode() {
		return traceCode;
	}
	public void setTraceCode(String traceCode) {
		this.traceCode = traceCode;
	}
	
	@Column(nullable=true)
	public String getTracePwd() {
		return tracePwd;
	}
	public void setTracePwd(String tracePwd) {
		this.tracePwd = tracePwd;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	@Column(updatable=false)
	public Date getLogDateC() {
		return logDateC;
	}
	public void setLogDateC(Date logDateC) {
		this.logDateC = logDateC;
	}
	public Date getLogDateU() {
		return logDateU;
	}
	public void setLogDateU(Date logDateU) {
		this.logDateU = logDateU;
	}
}
